package com.spring.Controller.Interface;

import com.spring.Entity.AdminEntity;
import jxl.read.biff.BiffException;
import org.springframework.ui.Model;
import org.springframework.web.multipart.MultipartFile;

import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpSession;
import java.io.IOException;
import java.util.Map;

/**
 * Created by CMCC-sunmo on 2016/8/26.
 */
public interface AdminController {
    public Map<String, Object> logIn();

    public Map<String, Object> testLogin(AdminEntity adminEntity, HttpSession session, HttpServletRequest request);

    //public Map<String, Object> logIn(AdminEntity adminEntity, HttpSession session);
    public Map<String, Object> logOut(HttpSession session, HttpServletRequest httpServletRequest);

    //public Map<String, Object> addUserExcel(MultipartFile file, HttpServletRequest request) throws IOException, BiffException;
    public Map<String, Object> addAdmin(AdminEntity adminEntity, HttpServletRequest request);

    public Map<String, Object> updateAdmin(HttpSession session, String adminName, HttpServletRequest request);

    public Map<String, Object> changePassword(HttpSession session, String oldPassword, String newPassword, HttpServletRequest request);

    public Map<String, Object> findById(HttpSession session, HttpServletRequest request);

    public Map<String, Object> findByAdminName(String adminName, HttpSession session, HttpServletRequest request);
}
